<?php
function my_autoloader($class) {
    //var_dump($class);
    include $class . '.php';
}
spl_autoload_register('my_autoloader');

$xml_obj = ParamHandler::getInstance("./test.xml");
$xml_obj->addParam("key1","val1");
$xml_obj->addParam("key2","val2");
$xml_obj->addParam("key3","val3");
$xml_obj->write();
$results = $xml_obj->getAllParams();
foreach($results as $key=> $val){
    echo "&nbsp&nbsp&nbsp&nbsp".$key.' : '.$val."\n<BR/>";
}

$text_obj = ParamHandler::getInstance("./test.txt");
$text_obj->read();